package com.nut.service.storage;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.nut.dao.StorageMapper;
import com.nut.pojo.Storage;
import com.nut.pojo.StorageExample;


@Service
public class StorageServiceImpl implements StorageServiceI{
	@Resource
	StorageMapper storageMapper;
	@Override
	public List<Storage> getStorages(StorageExample storageExample) {

		return storageMapper.selectByExample(storageExample);
	}
	@Override
	public Storage queryOne(int id) {

		return storageMapper.selectByPrimaryKey(id);
	}

}
